package com.netjava.pojo;

/**
 * Endauction entity.
 * 拍卖结束的商品
 * @author MyEclipse Persistence Tools
 */

public class EndAuction implements java.io.Serializable {

	// Fields

	private Integer endAuctionId;
	private User user;//该拍卖商品的拥有者
	private Product product;//拍卖的商品
	private String endTime;//拍卖结束的时间
	private String payTime;//付款时间
	private String other1;//备用字段
	private Integer deliverState=0;//是否发货，0：待发货；1：已发货

	// Constructors

	/** default constructor */
	public EndAuction() {
	}

	/** minimal constructor */
	public EndAuction(User user, Product product, String endTime) {
		this.user = user;
		this.product = product;
		this.endTime = endTime;
	}

	/** full constructor */
	public EndAuction(User user, Product product, String endTime,
			String payTime,Integer deliverState,String other1) {
		this.user = user;
		this.product = product;
		this.endTime = endTime;
		this.payTime=payTime;
		this.deliverState=deliverState;
		this.other1 = other1;
	}

	// Property accessors

	public Integer getEndAuctionId() {
		return this.endAuctionId;
	}

	public void setEndAuctionId(Integer endAuctionId) {
		this.endAuctionId = endAuctionId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public String getEndTime() {
		return this.endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	
	public String getPayTime() {
		return payTime;
	}

	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}

	public Integer getDeliverState() {
		return deliverState;
	}

	public void setDeliverState(Integer deliverState) {
		this.deliverState = deliverState;
	}

	public String getOther1() {
		return this.other1;
	}

	public void setOther1(String other1) {
		this.other1 = other1;
	}

}